<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div class="box">123 </div>
  <script>
    var boxEl = document.querySelector(".box")

    // boxEl. innerHTML = `
    // <p> asd </p>
    // `
    var h2El = document.createElement("h2")
    h2El.className = "title"
    h2El.classList.add("active")
    h2El.textContent = "asdasd"

    boxEl.prepend(h2El)
  </script>
</body>
</html>